luci-app-acme: put validation_method above domains
authorSergey Ponomarev <[email protected]>
Sat, 1 Jun 2024 15:42:19 +0000 (18:42 +0300)
committerToke Høiland-Jørgensen <[email protected]>
Tue, 7 Oct 2025 12:01:06 +0000 (14:01 +0200)
A user must specify the validation_method first.

Signed-off-by: Sergey Ponomarev <[email protected]>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js

index 4f526fe6a1f13646a68b64a9f41e964e9a1872e5..97e991438704b91486a1e863947031d6cdeac2f4 100644 (file)
@@ -68,21 +68,22 @@ return view.extend({
                o = s.taboption('general', form.Flag, "enabled", _("Enabled"));
                o.rmempty = false;
 
+               o = s.taboption('general', form.ListValue, 'validation_method', _('Validation method'),
+                       _('Standalone mode will use the built-in webserver of acme.sh to issue a certificate. ' +
+                               'Webroot mode will use an existing webserver to issue a certificate. ' +
+                               'DNS mode will allow you to use the DNS API of your DNS provider to issue a certificate.')
+               );
+               o.value('standalone', _('Standalone'));
+               o.value('webroot', _('Webroot'));
+               o.value('dns', _('DNS'));
+               o.default = 'webroot';
+
                o = s.taboption('general', form.DynamicList, "domains", _("Domain names"),
                        _("Domain names to include in the certificate. " +
                                "The first name will be the subject name, subsequent names will be alt names. " +
                                "Note that all domain names must point at the router in the global DNS."));
                o.datatype = "list(string)";
 
-               o = s.taboption('general', form.ListValue, 'validation_method', _('Validation method'),
-                       _("Standalone mode will use the built-in webserver of acme.sh to issue a certificate. " +
-                       "Webroot mode will use an existing webserver to issue a certificate. " +
-                       "DNS mode will allow you to use the DNS API of your DNS provider to issue a certificate."));
-               o.value("standalone", _("Standalone"));
-               o.value("webroot", _("Webroot"));
-               o.value("dns", _("DNS"));
-               o.default = 'webroot';
-
                o = s.taboption('challenge_webroot', form.Value, 'webroot', _('Webroot directory'),
                        _("Webserver root directory. Set this to the webserver " +
                                "document root to run Acme in webroot mode. The web " +